<?php
class Form_Supprimerphoto extends Zend_Form
{
	public function init(){
		$this->setMethod('post');
		$this->setName('photo');
		
//vip
		$vipnom = new Zend_Form_Element_Select('nomVip');
		$vipnom ->setLabel("Nom du vip :");
		$this->addElement($vipnom);
		


	
				
		$submitButton = new Zend_Form_Element_Submit('Valider');
		$this->addElement($submitButton); 
		
		$resetButton = new Zend_Form_Element_Reset('Annuler');
		$this->addElement($resetButton);
		
		
	}
	
	public function remplirVip(){
		$tablePhotos= new Table_Photos();
		$tableVips = new Table_Vips();
		foreach($tablePhotos->getVipAyantPhoto() as $vip){
			$this->nomVip->addMultiOption($vip->VIP_NUMERO, 
			$tableVips->getVip($vip->VIP_NUMERO)->VIP_NOM);
		}
	}
}



?>